package org.vt.scheduleapp;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class ScheduleAppActivity extends Activity {
	ImageButton b1, b2, b3, b4, b5;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    
	    b1 = (ImageButton) findViewById(R.id.Calendar);
	    b2 = (ImageButton) findViewById(R.id.Options); 
	    b3 = (ImageButton) findViewById(R.id.Info);
	    b4 = (ImageButton) findViewById(R.id.Notes);
	    b5 = (ImageButton) findViewById(R.id.events);
	    
	    b1.setOnClickListener(new OnClickListener()
	    {
	    	public void onClick(View view)
	    	{
	    		Intent myIntent = new Intent(view.getContext(), Schedule.class);
                startActivityForResult(myIntent, 0);	
	    	}
	    });
	     
	    b2.setOnClickListener(new OnClickListener()
	    {
	    	public void onClick(View view)
	    	{
	    		Intent myIntent = new Intent(view.getContext(), Options.class);
                startActivityForResult(myIntent, 0);
	    	}
	    });
	    
	    b3.setOnClickListener(new OnClickListener()
	    {
	    	public void onClick(View view)
	    	{
	    		Intent myIntent = new Intent(view.getContext(), Info.class);
	    		startActivityForResult(myIntent, 0);
	    	}
	    });
	    
	    b4.setOnClickListener(new OnClickListener()
	    {
	    	public void onClick(View view)
	    	{
	    		Intent myIntent = new Intent(view.getContext(), NotepadActivity.class);
	    		startActivityForResult(myIntent, 0);
	    	}
	    });
	    
	    b5.setOnClickListener(new OnClickListener()
	    {
	    	public void onClick(View view)
	    	{
	    		Intent myIntent = new Intent(view.getContext(), DisplayEvents.class);
	    		startActivityForResult(myIntent, 0);
	    	}
	    });
    }
}